Cosimo Cecchi [Wed, 8 Feb 2012 21:35:57 +0000 (16:35 -0500)]
color-swatch: add a color-light/color-dark style class for intensity
Themes might want to set different colors on the badge if the displayed
color is light or dark. Use a style class for this when we set a color
on the swatch.
Cosimo Cecchi [Wed, 8 Feb 2012 21:29:16 +0000 (16:29 -0500)]
themingbackground: make it based on GtkStyleContext
Instead of GtkThemingEngine. This will allow for the object to be also
used from inside e.g. a _draw() method.
Cosimo Cecchi [Wed, 8 Feb 2012 21:27:39 +0000 (16:27 -0500)]
roundedbox: add _apply_border_radius() variations for engine/context
And make the base function just use the raw corner radii struct.
Cosimo Cecchi [Wed, 8 Feb 2012 21:10:01 +0000 (16:10 -0500)]
themingengine: add a private _gtk_theming_engine_get_context()
We'll need this later.
Cosimo Cecchi [Wed, 8 Feb 2012 21:09:15 +0000 (16:09 -0500)]
themingengine: move _gtk_theming_engine_set_context to private header
Where it belongs.
Matthias Clasen [Sat, 4 Feb 2012 06:45:55 +0000 (01:45 -0500)]
Add API to set palettes
I'm not really convinced by this; the API is a little complicated.
May need more thought.
Matthias Clasen [Sat, 4 Feb 2012 05:02:49 +0000 (00:02 -0500)]
Misc cleanups
Matthias Clasen [Sat, 4 Feb 2012 04:45:24 +0000 (23:45 -0500)]
testcolorchooser: Add more options
Add a --edit option that brings the color chooser up in
single-color edit mode right away.
Matthias Clasen [Sat, 4 Feb 2012 01:38:21 +0000 (20:38 -0500)]
Deprecate old color selection widgets
GtkColorSelectionDialog, GtkColorSelection and GtkHSV have
been superseded by the GtkColorChooser* family of widgets.
Matthias Clasen [Sat, 4 Feb 2012 00:40:36 +0000 (19:40 -0500)]
Add docs
Matthias Clasen [Sat, 4 Feb 2012 00:39:10 +0000 (19:39 -0500)]
Small documentation tweaks in font choosers
Matthias Clasen [Fri, 3 Feb 2012 23:34:33 +0000 (18:34 -0500)]
Rework the API a bit
Rename get/set_color to get/set_rgba and show_alpha to use_alpha,
to match existing GtkColorButton API and let GtkColorButton implement
GtkColorChooser.
Matthias Clasen [Fri, 3 Feb 2012 17:13:06 +0000 (12:13 -0500)]
Simplify GtkColorScale private api a bit
Matthias Clasen [Fri, 3 Feb 2012 12:41:14 +0000 (07:41 -0500)]
Fix up exported symbols
Only GtkColorChooser* is public for now.
Matthias Clasen [Fri, 3 Feb 2012 12:27:10 +0000 (07:27 -0500)]
Add a small comments
Matthias Clasen [Fri, 3 Feb 2012 11:49:08 +0000 (06:49 -0500)]
Dismiss popups on show
This ensures that the editor always comes up without popups,
even when it is reused.
Matthias Clasen [Fri, 3 Feb 2012 07:12:52 +0000 (02:12 -0500)]
Add more todos
Matthias Clasen [Fri, 3 Feb 2012 07:09:44 +0000 (02:09 -0500)]
Add some accessible labels
Matthias Clasen [Fri, 3 Feb 2012 06:48:29 +0000 (01:48 -0500)]
Mark strings for translation
Matthias Clasen [Fri, 3 Feb 2012 06:41:45 +0000 (01:41 -0500)]
Finishing touches
Implement popups in the editor, fix window sizing, fix RTL flipping.
GtkColorPlane is now using adjustments, and GtkColorEditor is using
adjustments as its model as well.
Matthias Clasen [Fri, 3 Feb 2012 06:41:07 +0000 (01:41 -0500)]
Allow context menus on scale sliders
This will be used for a popup in the color chooser.
Matthias Clasen [Thu, 2 Feb 2012 22:43:49 +0000 (17:43 -0500)]
Only activate on double-click
Matthias Clasen [Thu, 2 Feb 2012 12:08:06 +0000 (07:08 -0500)]
Remove an erraneous g_free call
Matthias Clasen [Thu, 2 Feb 2012 06:16:00 +0000 (01:16 -0500)]
Add an Adwaita hack
When the theme is Adwaita, let the thumb extend out over the
colored trough.
Matthias Clasen [Thu, 2 Feb 2012 05:58:49 +0000 (00:58 -0500)]
Draw no trough for color scales
Matthias Clasen [Thu, 2 Feb 2012 05:58:26 +0000 (00:58 -0500)]
Move color scales into separate widget
Matthias Clasen [Wed, 1 Feb 2012 07:00:21 +0000 (02:00 -0500)]
Fix a few problems with custom color replacement
We were allowing one too many custom colors in, and when one
of them was dropped, we did not update the shape of the penultimate
one.
Matthias Clasen [Wed, 1 Feb 2012 06:53:08 +0000 (01:53 -0500)]
Make color chooser always come up with palette
Matthias Clasen [Wed, 1 Feb 2012 06:51:42 +0000 (01:51 -0500)]
Show new color chooser from color button
Matthias Clasen [Wed, 1 Feb 2012 05:58:07 +0000 (00:58 -0500)]
Use a swatch in the editor
For now, we simply make it insensitive to turn off unwanted
interactivity.
Matthias Clasen [Wed, 1 Feb 2012 05:37:58 +0000 (00:37 -0500)]
Don't waste memory
Matthias Clasen [Wed, 1 Feb 2012 05:37:36 +0000 (00:37 -0500)]
Preliminary color sliders
Matthias Clasen [Tue, 31 Jan 2012 07:05:37 +0000 (02:05 -0500)]
Make alpha optional
Matthias Clasen [Tue, 31 Jan 2012 05:58:07 +0000 (00:58 -0500)]
Show alpha in the palette as well
Matthias Clasen [Tue, 31 Jan 2012 05:39:00 +0000 (00:39 -0500)]
No popup menu on the button
Matthias Clasen [Tue, 31 Jan 2012 05:31:41 +0000 (00:31 -0500)]
Make saving custom colors work as intended
The custom colors are now pushed over to the right as new ones
are added, and everything beyond the 9th row gets dropped.
Customized colors are added to the custom colors array.
Matthias Clasen [Tue, 31 Jan 2012 04:40:13 +0000 (23:40 -0500)]
Choose a different initial color when adding custom colors
Going for pure red 'hides' the hairline at the edge of the
plane. This color makes it nicely visible.
Jon McCann [Tue, 31 Jan 2012 02:16:14 +0000 (21:16 -0500)]
Show editor when clicking custom button
Jon McCann [Tue, 31 Jan 2012 02:06:13 +0000 (21:06 -0500)]
Align label with swatches
Jon McCann [Tue, 31 Jan 2012 01:31:13 +0000 (20:31 -0500)]
Add Tangoish grayscales
Jon McCann [Tue, 31 Jan 2012 01:01:23 +0000 (20:01 -0500)]
Use the Tango palette by default
Matthias Clasen [Mon, 30 Jan 2012 23:37:00 +0000 (18:37 -0500)]
Move the plane into a separate widget
Matthias Clasen [Mon, 30 Jan 2012 14:56:20 +0000 (09:56 -0500)]
Initial work on a color editor
This replaces GtkHSV with a compound widget featuring
a hue slider and an sv-plane, amongst others.
Matthias Clasen [Sun, 29 Jan 2012 15:43:42 +0000 (10:43 -0500)]
Add a simple color chooser test
Matthias Clasen [Sun, 29 Jan 2012 15:42:34 +0000 (10:42 -0500)]
Initial cut at implementing a new color chooser
This is a partial implementation of
https://live.gnome.org/GnomeOS/Design/Whiteboards/ColorSelection
The new color editor has not been implemented yet.
Matthias Clasen [Tue, 14 Feb 2012 18:05:46 +0000 (13:05 -0500)]
Remove leftover debug spew
Cosimo Cecchi [Tue, 14 Feb 2012 16:26:16 +0000 (11:26 -0500)]
about-dialog: set proper spacing between columnns in credits section
Spacing ended up being really tight; add another 6px.
https://bugzilla.gnome.org/show_bug.cgi?id=668114
Cosimo Cecchi [Tue, 14 Feb 2012 16:21:52 +0000 (11:21 -0500)]
about-dialog: don't set a margin around the license area
Make it consistent with the credits page.
https://bugzilla.gnome.org/show_bug.cgi?id=670077
Cosimo Cecchi [Tue, 14 Feb 2012 16:19:04 +0000 (11:19 -0500)]
about-dialog: add a stroke around the credits area
Makes it consistent with e.g. the license page.
https://bugzilla.gnome.org/show_bug.cgi?id=670078
Alexander Larsson [Tue, 14 Feb 2012 14:14:37 +0000 (15:14 +0100)]
Set a bg on GtkViewport to ensure we get fast scrolling
Otherwise it will use the default alpha transparency and
not scroll efficiently.
Cosimo Cecchi [Tue, 14 Feb 2012 03:43:07 +0000 (22:43 -0500)]
treeview: don't use gtk_render_focus() for dnd indicator
There's no reason this should be a focus ring rather than an actual
frame. In the past this was probably used to get a dashed effect, but
now we even support that natively for borders.
Cosimo Cecchi [Tue, 14 Feb 2012 03:19:53 +0000 (22:19 -0500)]
treeview: set "dnd" style class when drawing drag and drop indicators
This is useful to theme the rings that appear around rows on drag and
drop.
Alexander Larsson [Mon, 13 Feb 2012 14:04:32 +0000 (15:04 +0100)]
Always make offscreen window rgba
This fixes issues where the new default bg of transparent
didn't work, making offscreen windows black.
I don't think this is a practical performance problem.
Offscreen windows are rarely used and generally used for
graphics tricks like alpha anyway.
Alexander Larsson [Mon, 13 Feb 2012 11:23:07 +0000 (12:23 +0100)]
Fix up win32 CSS
Now that we removed the default css a lot of stuff needed fixing
Murray Cumming [Mon, 13 Feb 2012 08:15:03 +0000 (09:15 +0100)]
GtkButton: Small documentation improvements
Benjamin Otte [Sun, 12 Feb 2012 15:44:21 +0000 (16:44 +0100)]
a11y: Mark cells as defunct when deleting them
Just unreffing isn't enough, atk-bridge might have a reference to the
object still.
Matthias Clasen [Sat, 11 Feb 2012 18:05:32 +0000 (13:05 -0500)]
Plug a small memory leak
Benjamin Otte [Sat, 11 Feb 2012 04:01:34 +0000 (05:01 +0100)]
a11y: Redo ref_accessible_at_point()
use direct access to the RBTree instead of fiddling with the path.
Removes the lat caller of get_index() and with it count_rows(), so those
are gone now.
Benjamin Otte [Sat, 11 Feb 2012 03:46:43 +0000 (04:46 +0100)]
tests: Reenable a11y tree-relationships test
It passes now.
Benjamin Otte [Sat, 11 Feb 2012 03:43:15 +0000 (04:43 +0100)]
a11y: create focus cell accessibles when they get focused
Benjamin Otte [Sat, 11 Feb 2012 03:36:40 +0000 (04:36 +0100)]
a11y: Split out cell creation function
Benjamin Otte [Sat, 11 Feb 2012 03:13:04 +0000 (04:13 +0100)]
a11y: Set relations without tree path
We can directly use at the rbtree's parent.
Benjamin Otte [Sat, 11 Feb 2012 02:42:14 +0000 (03:42 +0100)]
a11y: Remove unused variable
Benjamin Otte [Sat, 11 Feb 2012 02:37:25 +0000 (03:37 +0100)]
a11y: Keep treeview accessibles around
Refcounting behavior kinda requires that we track of accessibles until
the row goes away. This is necessary for reference handling and for some
assumptions that atk-bridge does.
Benjamin Otte [Sat, 11 Feb 2012 02:14:22 +0000 (03:14 +0100)]
a11y: Remove old treeview focus tracking code
Benjamin Otte [Sat, 11 Feb 2012 02:00:04 +0000 (03:00 +0100)]
a11y: Emit focus change events when focus cell changes
Benjamin Otte [Sat, 11 Feb 2012 01:54:11 +0000 (02:54 +0100)]
treeview: Add internal get_cursor_node() API
Benjamin Otte [Sat, 11 Feb 2012 01:50:26 +0000 (02:50 +0100)]
a11y: Update treeview focused status
... when the cursor row changes. Also emit active-descendant-changed.
Benjamin Otte [Sat, 11 Feb 2012 01:49:12 +0000 (02:49 +0100)]
treeview: Add private get_focus_column() API
Benjamin Otte [Sat, 11 Feb 2012 01:38:48 +0000 (02:38 +0100)]
treeview: Notify accessible about focus changes
Benjamin Otte [Sat, 11 Feb 2012 00:59:19 +0000 (01:59 +0100)]
treeview: Tell accessible about focus column changes
Sebastian Keller [Fri, 10 Feb 2012 22:55:18 +0000 (23:55 +0100)]
docs: Add documentation for alpha() in CSS
Claudio Saavedra [Tue, 7 Feb 2012 16:02:15 +0000 (18:02 +0200)]
GtkNotebook: emit child-notify::position a few more times
When moving a page around, all children changing their position
need to be notified.
There are still other places where proper notification is missing
(drag 'n drop, etc.)
https://bugzilla.gnome.org/show_bug.cgi?id=669116
Benjamin Otte [Fri, 10 Feb 2012 12:21:06 +0000 (13:21 +0100)]
accessible: Unset widget on dispose, not finalize
Unsetting the widget causes events to get emitted and we want to
(a) really emit that event to our signal handlers
(b) still be recognized as a real GObject while doing that
https://bugzilla.gnome.org/show_bug.cgi?id=669794
Benjamin Otte [Thu, 9 Feb 2012 12:45:31 +0000 (13:45 +0100)]
reftests: Add a test for misrendering of transparent windows
If a widget with a GDK window is set to be transparent in the CSS, it
gets drawn as black instead. This test checks that the fix works.
Ryan Lortie [Thu, 9 Feb 2012 22:52:21 +0000 (17:52 -0500)]
widget factory: link against gdkpixbuf
Otherwise we fail to link, seeing this:
/usr/bin/ld: gtk3_widget_factory-widget-factory.o: undefined reference
to symbol 'gdk_pixbuf_new_from_resource'
Rui Matos [Wed, 1 Feb 2012 17:59:23 +0000 (17:59 +0000)]
x11: Cancel _NET_WM_MOVERESIZE if we get a matching ButtonRelease
This implements the following part of the EWMH spec:
"The special value _NET_WM_MOVERESIZE_CANCEL also allows clients to cancel the
operation by sending such message if they detect the release themselves
(clients should send it if they get the button release after sending the move
resize message, indicating that the WM did not get a grab in time to get the
release)."
In particular, it fixes the case of clicking widgets that use
gdk_window_begin_[resize|move]_drag*() and the click "sticking", i.e. the
mouse button getting released but the resize or move operation remaining in
effect.
https://bugzilla.gnome.org/show_bug.cgi?id=669208
Alexander Larsson [Thu, 9 Feb 2012 22:16:03 +0000 (23:16 +0100)]
Remove all default css and make Raleigh a pure fallback theme
It was problematic to maintain Raleigh going forward, as any
changes in it affected all themes. Also, its more robust if
each theme is a full standalone css rather than relying on
an inherited css base.
So, this changes Raleigh to a standalone theme that we can tweak
without accidentally breaking other themes, and makes the
default theme empty. In fact, we don't even add the default
provider anymore as its always empty.
Piotr Drąg [Thu, 9 Feb 2012 20:32:56 +0000 (21:32 +0100)]
Updated POTFILES.skip
Alexander Larsson [Thu, 9 Feb 2012 20:09:44 +0000 (21:09 +0100)]
Fix transparency handling with non-double-buffered drawing
Sometimes we need to read back the window content into our double
buffer due to rendering a window with alpha when there is
no implicit paint or it has been flushed due to non-db drawing
before.
However, in this case we can't use gdk_cairo_set_source_window as
it might trigger an implicit paint flush as we detect what we
think is a direct non-double buffered window draw operation, which
will flush the implicit paint operation that we're just setting up.
To fix this we use the raw gdk_window_ref_impl_surface operation
to get the source surface.
Alexander Larsson [Thu, 9 Feb 2012 20:05:35 +0000 (21:05 +0100)]
Fix non-double-buffered drawing
There was a sign issue in a coordinate transform that made us
flush the wrong region when flushing an implicit paint.
The non-double buffered drawing would then be drawn over the
right area, but then at the end of the implicit paint this
would be overdrawn with the area we didn't properly remove
from the implicit paint.
Also, the translation from window coords to impl window
coords is now done before removing any active double
buffered paints, as these are also in impl window coords.
Kalev Lember [Thu, 9 Feb 2012 13:12:22 +0000 (15:12 +0200)]
win32: Don't crash when installed in a top-level directory
Avoid NULL-pointer dereference when package installation directory
doesn't contain any slashes.
Reported by Paweł Forysiuk.
Alexander Larsson [Thu, 9 Feb 2012 15:38:54 +0000 (16:38 +0100)]
Make the default background for GdkWindows transparent
With the changes in default CSS to make the default background transparent
we ran into issues where intermediate GdkWindow (for instance the
view_window in GtkViewport) where we didn't set an explicit background
(because before they were always covered). So instead of showing throught
the transparent windows were showing the default backgroind of the intermediate
window (i.e. black).
With this change we also needed to fix GtkViewport, as it was previously
relying on the bin and view windows to cover widget->window so that the
border was not visible if shadow_type was NONE.
Alexander Larsson [Thu, 9 Feb 2012 15:36:46 +0000 (16:36 +0100)]
viewport: Set frame styleclass when getting border size during size allocation
Without this you don't get the right border/padding for widget->window
and the border shows up under the scrolled contents.
Matthias Clasen [Thu, 9 Feb 2012 14:10:50 +0000 (09:10 -0500)]
Set BUILT_SOURCES
Matthias Clasen [Thu, 9 Feb 2012 14:06:18 +0000 (09:06 -0500)]
widget-factory: add the logo
Matthias Clasen [Thu, 9 Feb 2012 13:45:40 +0000 (08:45 -0500)]
Move widget-factory to demos/
Lets install this, for the benefit of artists everywhere.
Matthias Clasen [Thu, 9 Feb 2012 13:05:47 +0000 (08:05 -0500)]
gtk-demo: Use preprocessing for resources
Strip blanks from ui files, and convert pngs into pixdata.
This is useful and serves as a test of these preprocessing
options at the same time.
Matthias Clasen [Thu, 9 Feb 2012 12:59:57 +0000 (07:59 -0500)]
gtk-demo: Use gdk-pixbuf resource api
This is nicer than manual stream manipulation.
Matthias Clasen [Thu, 9 Feb 2012 12:57:11 +0000 (07:57 -0500)]
widget-factory: add an about dialog
This is a first step towards making widget-factory an installed
demo.
Baurzhan Muftakhidinov [Thu, 9 Feb 2012 09:09:30 +0000 (15:09 +0600)]
[l10n] Updated Kazakh translation
Matthias Clasen [Wed, 8 Feb 2012 12:26:25 +0000 (07:26 -0500)]
Avoid a C99ism
Move variable declarations to the beginning of the block.
https://bugzilla.gnome.org/show_bug.cgi?id=669511
Diego Escalante Urrelo [Wed, 8 Feb 2012 08:32:07 +0000 (03:32 -0500)]
gtkbuilder-menus: translation-domain can be NULL
GtkBuilder defaults its translation-domain to NULL, which is a perfectly
fine value for d_gettext() and friends.
https://bugzilla.gnome.org/show_bug.cgi?id=669638
Diego Escalante Urrelo [Wed, 8 Feb 2012 08:27:39 +0000 (03:27 -0500)]
gtkactiongroup: clarify set_translation_domain docs
NULL is an actual useful value for
gtk_action_group_set_translation_domain, but this information is buried
in g_dgettext() documentation.
Be extra redundant, to make it obvious that NULL is ok.
https://bugzilla.gnome.org/show_bug.cgi?id=669636
Mattias Põldaru [Wed, 8 Feb 2012 08:59:07 +0000 (10:59 +0200)]
[l10n] Updated Estonian translation
Matthias Clasen [Mon, 6 Feb 2012 22:32:46 +0000 (17:32 -0500)]
Bump version
Matthias Clasen [Mon, 6 Feb 2012 21:38:47 +0000 (16:38 -0500)]
3.3.14
Matthias Clasen [Mon, 6 Feb 2012 21:11:27 +0000 (16:11 -0500)]
Adapt expected output
A recent string change in GtkAboutDialog needs to be reflected
here.
Benjamin Otte [Mon, 6 Feb 2012 20:49:17 +0000 (21:49 +0100)]
tests: Remove untrue assertion
Even if something is not at the top, things might still not be scrolled.
For example in the case where things are exactly at the center.
Benjamin Otte [Mon, 6 Feb 2012 20:24:59 +0000 (21:24 +0100)]
tests: Don't test something we can't test
When using GtkTreeStore, don't compute row positions assuming
everything's a list store, which is how get_row_start_for_index() works.
So instead, do a laxer check and don't insist on proper alignment.